<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    /**
     * 展示后台首页
     *
     * @return 后台首页视图
     */

    public function index(request $request)
    {
    	//查询数据库
    	$id = $request->session()->get('uid');
    	$user = DB::table('user')->where('id',$id)->first();

    public function index()
    {
        return view('Admin.index');
    }

   
}
